package com.xjzd.std.exception;

public class ExceptionStack {

    static void test1() {
        throw new RuntimeException("exception in test1");
    }

    static void test2() {
        try {
            test1();
        } catch (Exception e) {
            throw new RuntimeException("exception in test2", e);
        }
    }

    static void test3() {
        try {
            test2();
        } catch (Exception e) {
            throw new RuntimeException("exception in test3", e);
        }
    }

    static void normal() {
        test3();
    }

    public static void main(String[] args) {
        normal();
    }
}
